CentOS 6
Sponsored Link

Configure as a Reverse Proxy
2014/08/12
 
Configure Squid as a reverse proxy server.
[1] Configure Squid.
[root@prox ~]#
vi /etc/squid/squid.conf
# near line 59: add ( allow all http access )

http_access allow all

http_access deny all
# line 62: specify backend Web server's IP address

http_port
80 defaultsite=10.0.0.31
# add to the end

cache_peer 10.0.0.31 parent 80 0 no-query originserver
# memory cache size

cache_mem 256 MB
# define hostname

visible_hostname prox.srv.world
[root@prox ~]#
/etc/rc.d/init.d/squid restart

Stopping squid: ................             [  OK  ]
Starting squid: .                            [  OK  ]
[2] Change settings of DNS or Routers in your LAN if need to listen HTTP access on Squid, then try to access to Squid Reverse Proxy Server from a ClientPC with Web browser like follows.
 
Tweet